import request from '@/utils/request'

let preUrl = '/api/diagnosis'

export function generate(recordId, templateId) {
  return request({
    url: preUrl + '/generate/' + recordId + '/' + templateId,
    method: 'get'
  })
}

export function similarity(_id, diseaseCode, startRange, endRange) {
  return request({
    url: preUrl + '/similarity',
    method: 'get',
    params: {
      diseaseCode,
      startRange,
      endRange,
      resultId: _id
    }
  })
}